<?php
namespace app\store\controller;


use think\Db;

class Market extends Base
{
	/**
	 * 营销活动
	 * URL ：store/market/index
	 * @return [type] [description]
	 */
    public function index()

    {

        $id = input('id',1);

        // 查看详细配置
        $res   = Db::name('shops_market_enlist')->where('id',$id)->find();

        //获取皮肤详情
        $skin  = Db::name('skin')->where('id',$res['skin_id'])->find();

        //获取音乐详情
        $music = Db::name('music')->where('id',$res['music_id'])->find();

        // 页面渲染
        $this->assign('res',$res);
        $this->assign('skin',$skin);
        $this->assign('music',$music);

        return $this->fetch();
    }
}
